<div id="submenu">
	<?php echo anchor('setting/', lang('form_label_back'))?>
	<br>
	<?php echo anchor('preview/setting_form', lang('menuitem_add_new'))?>
	<br>
        <?php echo anchor('preview/preview_template', lang('menuitem_template'), 'class="btn"')?>
</div>
	
	<?php
		//print how much list price(s) we get
		echo $count.' '.lang('general_record_found');

	if($count > 0) {
	?>
				
	<table  id='myTable' name='myTable' class='tablesorter' border='0' cellspacing='1' cellpadding='0'>
		<thead><tr>
			<th> # </th>
			<th> <?php echo lang('form_label_name')?> </th>
			<th> <?php echo lang('menuitem_edit')?> </th>
			<!-- <th> <?php echo lang('menuitem_delete')?> </th> -->
		</tr>
		</thead>
		<tbody>
	<?php 
		$i = 0;
		foreach($result as $row){
			echo "<tr>";
			echo "<td>". ++$i ."</td>";
			echo "<td>".$row['name']."</td>";
			echo "<td>". anchor("preview/setting_form/".$row['id'] , lang('menuitem_edit'))."</td>";
			echo "<!--<td>". anchor("preview/delete_preview/".$row['id'] , lang('menuitem_delete'))."</td> -->";
			echo "</tr>";
		}
	echo "</table>";
	} //end if?>
